package com.gss.armory.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="DOC_TYPE_METADATA_ATTR_MAPPING")
public class DocumentTypeMetaDataAttrMappingDTO {
	private int dtmId;
	private int dtmTypeId;
	private int dtmAttrId;
	private boolean mandatory;
	private boolean fixedValueList;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="DTM_ID")
	public int getDtmId() {
		return dtmId;
	}
	@Column(name="DTM_TYPE_ID",nullable=false)
	public int getDtmTypeId() {
		return dtmTypeId;
	}
	@Column(name="DTM_ATTR_ID",nullable=false)
	public int getDtmAttrId() {
		return dtmAttrId;
	}
	@Column(name="DTM_IS_MANDATORY",nullable=false)
	public boolean isMandatory() {
		return mandatory;
	}
	@Column(name="DTM_IS_LIST",nullable=false,columnDefinition="smallint default 0")
	public boolean isFixedValueList() {
		return fixedValueList;
	}

	public void setDtmId(int dtmId) {
		this.dtmId = dtmId;
	}

	public void setDtmTypeId(int dtmTypeId) {
		this.dtmTypeId = dtmTypeId;
	}

	public void setDtmAttrId(int dtmAttrId) {
		this.dtmAttrId = dtmAttrId;
	}

	public void setMandatory(boolean mandatory) {
		this.mandatory = mandatory;
	}

	public void setFixedValueList(boolean fixedValueList) {
		this.fixedValueList = fixedValueList;
	}
	
}
